package com.eas.biz.dao.user.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.eas.biz.dao.user.dataobject.CommitteeDO;
import com.eas.biz.dao.user.interfaces.CommitteeDao;
import com.eas.biz.framework.BaseQuery;
import com.eas.biz.framework.dao.GenericDaoImpl;

@Repository("committeeDao")
public class CommitteeDaoImpl extends GenericDaoImpl<CommitteeDO> implements CommitteeDao {

    public CommitteeDO selectById(long id) {
        return selectById("Committee.selectById", id);
    }

    public long insert(CommitteeDO committee) {
        return insert("Committee.add", committee);
    }

    public int deleteById(long id) {
        return deleteById("Committee.deleteById", id);
    }

    public int update(CommitteeDO committee) {
        return update("Committee.update", committee);
    }

    public List<CommitteeDO> selectByQuery(BaseQuery query) {
        return selectByQuery("Committee.selectByQuery", query);
    }

    public int countByQuery(BaseQuery query) {
        return countByQuery("Committee.countByQuery", query);
    }

}
